import {get, post, del, put} from "../http";

// 创建课程
export const createCourse = (data) =>
  post('/edu/course/create', data)
// 修改课程
export const updateCourse = (data) =>
  put('/edu/course/update', data)
// 根据id查询
export const findByIdCourse = (id) =>
  get(`/edu/course/findById/${id}`)
// 提交审核时查询的详细信息
export const findDetailedInfoById = (courseId) =>
  get(`/edu/course/findDetailedInfoById/${courseId}`)
// 查询全部
export const findAllCourse = (current, size, query) =>
  post(`/edu/course/findByCondition/${current}/${size}`, query)
// 发布课程
export const publishCourse = (id) =>
  put(`/edu/course/publishCourse/${id}`)
// 删除课程
export const delCourse = (id) =>
  del(`/edu/course/delete/${id}`)



